/**
* +----------------------------------------------------------------------
* | 友得云客  - 开启房产营销新纪元
* +----------------------------------------------------------------------
* | Copyright (c) 2019~2023 优得（西安）信息科技有限公司版权所有
* +----------------------------------------------------------------------
* | Licensed 友得云客不是自由软件 未经允许不可移除相关版权
* +----------------------------------------------------------------------
* | Author: www.youdeyunke.com
* +----------------------------------------------------------------------
*/
import request from '@/utils/request'

export function getScoreGoodList (params) {
    return request({
        url: '/admin6/score_goods',
        method: 'get',
        params
    })
}

export function updateScoreGood (data) {
    return request({
        url: '/admin6/score_goods/' + data.id,
        method: 'PATCH',
        data: data
    })
}

export function deleteScoreGood (hid) {
    return request({
        url: '/admin6/score_goods/' + hid,
        method: 'DELETE',
    })
}

export function createScoreGood (data) {
    return request({
        url: '/admin6/score_goods',
        method: 'POST',
        data: data
    })
}

export function isShowScoreGood (data) {
    return request({
        url: '/admin6/score_goods/is_show/' + data.id,
        method: 'PATCH',
        data: data
    })
}

// 商品规格相关接口
export function getGoodsStandards (id) {
    return request({
        url: '/admin6/goods_standard/' + id,
        method: 'get',
    })
}

export function createGoodsStandards(data){
    return request({
        url: '/admin6/goods_standard',
        method: 'POST',
        data: data
    })
}

export function updateGoodsStandards(data){
    return request({
        url: '/admin6/goods_standard/' + data.id,
        method: 'PATCH',
        data: data
    })
}

export function deleteGoodsStandards(id){
    return request({
        url: '/admin6/goods_standard/' + id,
        method: 'DELETE',
    })
}